<div class="path">
    <i class="iconfont icon-shouye1"></i>
    <a href="{url('admin/default/welcome')}">开始</a> / 
    <a href="javascript:void(0);">报表导出</a>
</div>
<div class="table-head fn-clear">
    <div class="fn-l">
        <a href="{url('repair/counts/excel',array(start_time=>date('Y-m-d')))}" class="button"> 
            今天
        </a>
        <a href="{url('repair/counts/excel',array(start_time=>date('Y-m-d',time()-7*24*60*60)))}" class="button">
             一周 
        </a>
        <a href="{url('repair/counts/excel',array(start_time=>date('Y-m-d',time()-30*24*60*60)))}" class="button"> 
            一月 
        </a>
        <a href="{url('repair/counts/excel',array(start_time=>date('Y-m-d',time()-90*24*60*60)))}" class="button"> 
           一季 
        </a>
        <a href="{url('repair/counts/excel',array(start_time=>date('Y-m-d',time()-180*24*60*60)))}" class="button">
           半年 
        </a>
        <a href="{url('repair/counts/excel',array(start_time=>date('Y-m-d',time()-365*24*60*60)))}" class="button">
           一年
        </a>
    </div>
    <div class="fn-r">
        <a href="{url('counts/toexcel_a',$search)}" class="button button-blue">
            <i class="iconfont icon-xiazai"></i> 入库表
        </a>
        <a href="{url('counts/toexcel_b',$search)}" class="button button-green">
            <i class="iconfont icon-xiazai"></i> 出库表
        </a>
        <a href="{url('counts/toexcel_c',$search)}" class="button button-violet ">
            <i class="iconfont icon-xiazai"></i> 维修表
        </a>
        <a href="{url('counts/toexcel_lists',$search)}" class="button">
            <i class="iconfont icon-xiazai"></i> 汇总表
        </a> 
    </div>
</div>
<form id="form" action="{url('counts/excel')}" method="post">
<div class="table-search fn-clear">
<ul>
<li>
    <span class="fn-tar">IMEI号:</span>
    <span class="sinput"><input class="input" type="text" name="imei" value="{$imei}" /></span>
</li>
<li>
    <span class="fn-tar">门店号:</span>
    <span class="sinput">
<select class="select" name="supplier_id">
    <option value="" selected="selected"></option>
{loop $supplier_lists $vo} 
    <option value="{$vo['id']}" {if $supplier_id ==$vo['id']} selected="selected"{/if}>{$vo['name']}</option>
{/loop}
</select>
    </span>
</li>
<li>
    <span class="fn-tar">跟踪号:</span>
    <span class="sinput"><input class="input" type="text" name="number" value="{$number}" /></span>
</li>
<li>  
    <span class="fn-tar">产品名称:</span>
    <span class="sinput"><input class="input" type="text" name="mobile_name" value="{$mobile_name}" /></span>
</li>
<li>
    <span class="fn-tar">入库时间:</span>
    <span class="sinput"><input class="input ui-time" type="text" name="start_time" value="{$start_time}" /></span>
</li>
<li>
    <span class="fn-tar">出库时间:</span>
    <span class="sinput"><input class="input ui-time" type="text" name="end_time" value="{$end_time}" /></span>
</li>
<li><input type="submit" value="开始查找手机" class="button button-green submit" /></li>
</div>
</form>
<div class="m10">
<table class="table table-border">
<thead>
    <tr>
        <th class="fn-tac w100">跟踪号</th>
        <th class="fn-tac w100">门店号</th>
        <th class="fn-tac w40">保内</th>
        <th class="fn-tac w100">IMEI号</th>
        <th>产品名称</th>
        <th class="fn-tac w140">入库时间</th>
        <th class="fn-tac w140">出库时间</th>
        <th class="fn-tac w60">操作</th>
    </tr>
</thead>
<tbody>
{loop $list $vo}
<tr>
    <td class="fn-tac"><a title="手机入库单详情" href="javascript:void(0);" url="{url('mobile/reads',array(id=>$vo['id']))}" class="win">{$vo['number']}</a></td>
    <td class="fn-tac">{$vo['company_number']}</td>
     <td class="fn-tac">{if $vo['overtime'] == '过保'}<span class="badge bg-red">过保</span>{else}<span class="badge bg-blue">保内</span>{/if}</td>
    <td class="fn-tac"><a title="查看维修详情" href="{url('service/reads',array(id=>$vo['id']))}">{$vo['imei']}</a></td>
    <td>{$vo['mobile_name']}</td>
    <td class="fn-tac">{date('Y-m-d H:i:s',$vo['add_time'])}</td>
    <td class="fn-tac">{date('Y-m-d H:i:s',$vo['out_time'])}</td>
    <td class="fn-tac">
    <a title="导出" href="{url('counts/all_excel',array(id=>$vo['id']))}">汇总单</a></td>
</tr>
{/loop}
</tbody>
</table>
<div id="page" class="fn-clear">{$pager}</div>
</div>
<script type="text/javascript">
Do('base','form','date','dialog',function(){ 
  $('#form').forms({types:'post'});
  $('.win').click(function(){$(this).win();});
})
</script>
